

//ajax方法
const AJAX = {
	post: function (url,data,success) {
		$.ajax({
			url: (base + url),
			data: JSON.stringify(data),
			dataType: 'json',
			type: 'post',
			async: true,
			contentType: 'application/json;utf-8',
			success: success,
			error: function  (e) {
                console.log(e);
            }
		});
	}
};

//提醒文本
function Remind(content = '暂无',state = 'default',timeout = 3000,x = 'center',y = 'center') {
    mini.showTips({
        content: content,
        state: state,      //default|success|info|warning|danger
        x: x,          //left|center|right
        y: y,          //top|center|bottom
        timeout: timeout     //自动消失间隔时间。默认2000（2秒）。
    });
}